package com.jd.jstable.annotation;


import com.jd.jstable.config.KeyMode;

import java.lang.annotation.*;

/**
 * 高可用定义：该服务将在函数抛出异常时 使用备用的同一参数值的上次返回值作为此次调用返回值
 * @author chenyipu
 * @author eapchen
 * @mailto admin@4tech.cn
 * Created by chenyipu on 2018/1/10.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface HighAvailability{
    String strategies();
    int key_mode() default KeyMode.SOME_ARG;
    int key_index() default 0;
    String prefix() default "";
}
